﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using DLTN.Entities;
using DLTN.Data;

public partial class Tour_Chi_Tiet_Tour : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {
        if (!IsPostBack)
        {
            if (Request.Params["Id"] != null)
            {
                HD_IDTour.Value = Request.Params["Id"].ToString();

                HienThiTenTour(Convert.ToInt32(HD_IDTour.Value));
            }

        }
    }

    private void HienThiTenTour(int Id)
    {
        Tour ent_Tour = DataRepository.TourProvider.GetById(Id);        
        litnoidung.Text = String.Format("<meta name=\"description\" content=\"{0}\" />", ent_Tour.TomTat);
        ltrTitle.Text = ent_Tour.TieuDe;
    }

}